package com.caszx.chargingpile.holder.battery;

import android.view.View;
import android.widget.TextView;

import com.app.base.adapter.holder.BaseHolder;
import com.caszx.chargingpile.R;
import com.caszx.chargingpile.entity.EntityCharge;

/**
 * Created by think on 2016/2/29.
 */
public class ChargeHolder extends BaseHolder<EntityCharge> {

    private TextView txt_station_name;
    private TextView txt_pileNo;

    public ChargeHolder(View view) {
        super(view);
    }

    @Override
    protected void initView() {
        txt_station_name = (TextView) mRootView.findViewById(R.id.txt_station_name);
        txt_pileNo = (TextView) mRootView.findViewById(R.id.txt_pileNo);
    }

    @Override
    protected void refreshView() {
        txt_station_name.setText(mItem.stationName);
        txt_pileNo.setText("电桩编号:"+mItem.pileNo);

    }
}
